import request from "../utils/request";

function getBannerList(params) {
  return request({
    url: '/banner/list',
    method: 'GET',
  })
}

// 添加轮播图数据
function addBanner (params) {
  return request({
    url: '/banner/add',
    method: 'POST',
    data: params
  })
}

// 删除轮播图数据
function deleteBanner (params) {
  return request({
    url: '/banner/delete',
    data: params
  })
}


export {
  getBannerList,
  addBanner,
  deleteBanner
}
